package com.ruoyi.depot.domain;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 品检对象 tb_quality_inspection
 * 
 * @author luxiaoyu
 * @date 2024-11-05
 */
public class QualityInspection extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 质检ID */
    private String inspectionId;

    /** 质检单号 */
    @Excel(name = "质检单号")
    private String qualityCode;

    /** 收货单ID */
    private String receiptId;

    /** 采购订单id */
    @Excel(name = "采购订单号")
    private Long ordersId;

    /** 采购订单号 */
    @Excel(name = "采购订单号")
    private String ordersNumber;

    /** 质检量 */
    @Excel(name = "总质检量")
    private Long inspectionQuantity;

    /** 总次品量 */
    @Excel(name = "总次品量")
    private Long totalDefectiveQuantity;

    /** 总良品量 */
    @Excel(name = "总良品量")
    private Long totalPassQuantity;

    /** 质检员 */
    @Excel(name = "质检员")
    private String inspector;

    /** 质检时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "质检时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date inspectionDate;

    /** 质检状态(0：质检中  1：已质检   2：已质检（已撤销）  3：待审核) */
    @Excel(name = "质检状态(0：质检中  1：已质检   2：已质检", readConverterExp = "已=撤销")
    private String inspectionStatus;

    /** 删除状态(0：正常  1：已删除 */
    @Excel(name = "删除状态(0：正常  1：已删除")
    private Integer deleteStatus;


    private List<DTOReceiptProducts> qualityInspectionData;

    public List<DTOReceiptProducts> getQualityInspectionData() {
        return qualityInspectionData;
    }

    public void setQualityInspectionData(List<DTOReceiptProducts> qualityInspectionData) {
        this.qualityInspectionData = qualityInspectionData;
    }


    public Integer getDeleteStatus() {
        return deleteStatus;
    }

    public void setDeleteStatus(Integer deleteStatus) {
        this.deleteStatus = deleteStatus;
    }

    public String getInspectionId() {
        return inspectionId;
    }

    public String getOrdersNumber() {
        return ordersNumber;
    }

    public void setOrdersNumber(String ordersNumber) {
        this.ordersNumber = ordersNumber;
    }

    public void setInspectionId(String inspectionId) {
        this.inspectionId = inspectionId;
    }

    public void setQualityCode(String qualityCode)
    {
        this.qualityCode = qualityCode;
    }

    public String getQualityCode() 
    {
        return qualityCode;
    }

    public String getReceiptId() {
        return receiptId;
    }

    public void setReceiptId(String receiptId) {
        this.receiptId = receiptId;
    }

    public Long getOrdersId() {
        return ordersId;
    }

    public void setOrdersId(Long ordersId) {
        this.ordersId = ordersId;
    }

    public void setInspectionQuantity(Long inspectionQuantity)
    {
        this.inspectionQuantity = inspectionQuantity;
    }

    public Long getInspectionQuantity() 
    {
        return inspectionQuantity;
    }

    public void setTotalDefectiveQuantity(Long totalDefectiveQuantity) 
    {
        this.totalDefectiveQuantity = totalDefectiveQuantity;
    }

    public Long getTotalDefectiveQuantity() 
    {
        return totalDefectiveQuantity;
    }
    public void setTotalPassQuantity(Long totalPassQuantity) 
    {
        this.totalPassQuantity = totalPassQuantity;
    }

    public Long getTotalPassQuantity() 
    {
        return totalPassQuantity;
    }
    public void setInspector(String inspector) 
    {
        this.inspector = inspector;
    }

    public String getInspector() 
    {
        return inspector;
    }
    public void setInspectionDate(Date inspectionDate) 
    {
        this.inspectionDate = inspectionDate;
    }

    public Date getInspectionDate() 
    {
        return inspectionDate;
    }
    public void setInspectionStatus(String inspectionStatus) 
    {
        this.inspectionStatus = inspectionStatus;
    }

    public String getInspectionStatus() 
    {
        return inspectionStatus;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("inspectionId", getInspectionId())
            .append("qualityCode", getQualityCode())
            .append("receiptId", getReceiptId())
            .append("ordersId", getOrdersId())
            .append("inspectionQuantity", getInspectionQuantity())
            .append("totalDefectiveQuantity", getTotalDefectiveQuantity())
            .append("totalPassQuantity", getTotalPassQuantity())
            .append("inspector", getInspector())
            .append("inspectionDate", getInspectionDate())
            .append("inspectionStatus", getInspectionStatus())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
